package com.czh.gateway.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 响应码枚举
 */
@AllArgsConstructor
@Getter
public enum ResponseResultEnum {
    SUCCESS(200,"成功"),

    FAILED(500,"失败"),

    NOT_LOGIN(401,"未登录"),

    PARAM_ERROR(402,"参数错误"),

    PERMISSION_DENIED(403,"权限不足"),

    DISABLED_ACCOUNT(405,"账户被禁用"),

    REQUEST_FREQUENCY_LIMITED(429,"请求过于频繁"),

    SERVER_ERROR(500,"服务器错误");

    private final int code;

    private final String msg;
}
